package com.bincky.pageobject;

import com.bincky.common.BasePage;
import org.openqa.selenium.By;

/**
 * 描述:
 *
 * @author Bincky Liang
 * @date 2021-02-11 15:54:22
 */

public class AntiDopingIndexPage extends BasePage {

    private By reportToApprovalButtonBy = By.xpath("//p[contains(text(),'我的汇报待审批')]/parent::li");

    private By reportNotApprovalButtonBy = By.xpath("//p[contains(text(),'我的汇报审批不通过')]/parent::li");

    //导航栏上的审核菜单
    private By reviewMenuBy = By.xpath("//span[text()='审批']");

    //导航栏上的我提交的工作汇报菜单
    private By mySubmittedReportMenuBy = By.xpath("//span[text()='我提交的工作汇报']/parent::li");
    /**
     * 点击我的汇报待审批按钮
     */
    public void clickReportToApprovalButton(){

        click(reportToApprovalButtonBy);
    }

    /**
     * 点击我的汇报审批不通过按钮
     */
    public void clickReportNotApprovalButton(){
        click(reportNotApprovalButtonBy);
    }

    /**
     * 点击审核菜单
     */
    public void clickReviewMenu(){
        click(reviewMenuBy);
    }

    /**
     * 点击我提交的工作汇报菜单
     */
    public void clickMySubmittedReportMenu(){
        click(mySubmittedReportMenuBy);
    }


}
